package io.geely.push.modules.sys.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.geely.push.common.utils.PageUtils;
import io.geely.push.common.utils.Query;
import io.geely.push.modules.sys.dao.NotificationDao;
import io.geely.push.modules.sys.entity.NotificationEntity;
import io.geely.push.modules.sys.service.NotificationService;


@Service("notificationService")
public class NotificationServiceImpl extends ServiceImpl<NotificationDao, NotificationEntity> implements NotificationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<NotificationEntity> page = this.selectPage(
                new Query<NotificationEntity>(params).getPage(),
                new EntityWrapper<NotificationEntity>()
        );

        return new PageUtils(page);
    }

}
